<?php

class Utils {
  public static function formataMoeda($valor){
    return "R$ ".number_format($valor, 2, ',', '.');
  }
  
  public static function formataData($data){
    return date_format($data, "dd/m/yy");
  }
  
  public static function formataTelefone($telefone){
    return '('.substr($telefone, 0, 2).') '.substr($telefone,2,4).'-'.substr($telefone,6);
  }
}

?>